package sparrowGui.item
{
	import flash.display.Sprite;
	
	import sparrowGui.skin.RadioItemSkin;
	import sparrowGui.utils.PubFun;
	
	public class RadioItem extends Item
	{
		public function RadioItem(data:Object=null, argSkin:Sprite=null, vars:Object=null)
		{
			_skin = argSkin || new RadioItemSkin();
			super(data, skin, vars);
		}
		
		override public function update(o:Object):void
		{
			if(!o) return;
			itemData = o;
			PubFun.setSimpleButtonText(skin,String(o));
		}
		
		public function set htmlText(val:String):void
		{
			if(val) PubFun.setSimpleButtonText(skin,val,true);
		}
	}
}